/*
 * @Description:
 * @Author: HYH
 * @LastEditors: HYH
 * @LastEditTime: 2023-06-29 14:04:31
 */
import request from '@/utils/request'

/**查询经销商（商家）列表 */
export function getDistrList(params) {
  return request({
    url: '/distribution/distributor/list?type=1',
    params
  })
}

/**查询账单列表*/
export function billList(params) {
  return request({
    url: '/distribution/bill/list',
    params
  })
}


/**查询账单详情*/
export function getBillDetails(batchId) {
  return request({
    url: `/distribution/bill/${batchId}`
  })
}

/**批量账单结账信息接口 */
export function batchBillPayInfo(data) {
  return request({
    url: '/distribution/bill/batchBillPayInfo',
    method: 'post',
    data
  })
}

/**批量账单线下结账-平台权限操作 */
export function batchBillPayHand(data) {
  return request({
    url: '/distribution/bill/batchBillPayHand',
    method: 'post',
    data
  })
}
/**获取卖家订单费用账单:明细 */
export function billSellerFeeInfo(params) {
  return request({
    url: '/distribution/bill/billSellerFeeInfo',
    params
  })
}

/**批量账单卖家线下支付*/
export function sellerBatchBillOfflinePay(data) {
  return request({
    url: '/distribution/bill/sellerBatchBillOfflinePay',
    method: 'post',
    data
  })
}
/**租户续费线下支付申请*/
export function rechargeOfflinePay(data) {
  return request({
    url: '/distribution/distributor/rechargeOfflinePay',
    method: 'post',
    data
  })
}

/**线下支付审核列表 */
export function getOfflinePayList(params) {
  return request({
    url: '/distribution/bill/getOfflinePayList',
    params
  })
}

/**批量账单卖家线下支付-确认支付*/
export function sellerBatchBillOfflinePayConfirm(data) {
  return request({
    url: '/distribution/bill/sellerBatchBillOfflinePayConfirm',
    method: 'post',
    data
  })
}

/**批量账单卖家线下支付-取消*/
export function sellerBatchBillOfflinePayCancel(data) {
  return request({
    url: '/distribution/bill/sellerBatchBillOfflinePayCancel',
    method: 'post',
    data
  })
}

/**租户续费结账信息接口 */
export function rechargeInfo(data) {
  return request({
    url: '/distribution/distributor/rechargeInfo',
    method: 'post',
    data
  })
}

/**获取账单应付款详情*/
export function getPayInfo(params) {
  return request({
    url: '/distribution/bill/getPayInfo',
    params
  })
}
